package com.bank.mapper;

import com.bank.pojo.Transaction;
import org.apache.ibatis.annotations.Mapper;
import java.util.List;

@Mapper
public interface TransactionMapper {
    void insert(Transaction transaction);

    List<Transaction> findByUserNumber(String Number);
    List<Transaction> findAllTransaction();


    Transaction selectLatestTransaction(String Id);  // 获取最新交易记录
    // 批量删除交易记录
    int batchDelete(List<String> ids);

    // 删除单个交易记录
    int deleteById(Integer id);
}